package com.vcc.data.entity;


import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Table;
import com.vcc.data.base.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

@EqualsAndHashCode(callSuper = true)
@Data
@Setter
@Getter
@Table(value = "vcc_risk")
public class Risk extends BaseEntity implements Serializable {

    @Column(comment = "操作用户Id", value = "operator_id")
    private Long operatorId;

    /**
     * 风控场景名
     * mcc merchant_name country_code
     */
    @Column(comment = "风控场景名", value = "name")
    private String name;

    /**
     * 风控场景代码
     * TRANSACTION 交易
     */
    @Column(comment = "风控场景代码", value = "code")
    private String code;

    /**
     * 用户ID
     */
    @Column(comment = "风控规则", value = "target_id")
    private Long targetId;

    /**
     * 0 启用 1 禁用
     */
    @Column(comment = "状态", value = "status")
    private Integer status;


    /**
     * 是否自动处理
     * true 是 false 否
     */
    @Column(comment = "是否自动处理", value = "has_auto")
    private Boolean hasAuto;

    /**
     * block 禁用 close 销卡
     */
    @Column(comment = "处理方法", value = "function_name")
    private String functionName;

    /**
     * 卡（card） or 账户(account)
     */
    @Column(comment = "风控类型", value = "dispose_object")
    private String disposeObject;


    /**
     * 规则类型
     * true 针对交易 false 针对交易量
     */
    @Column(comment = "规则类型", value = "rule_type")
    private Boolean ruleType;

    /**
     * 最小交易次数
     */
    @Column(comment = "最小交易次数", value = "min_transaction_count")
    private Integer minTransactionCount;
}
